<html>
<head>
  <meta charset="utf-8">
  <meta content="IE=edge" http-equiv="X-UA-Compatible">
  <meta content="never" name="referrer">
  <meta content="width=device-width, initial-scale=1" name="viewport">
  <title>付款给AC进行py交易</title>
  <style>
    * {
        margin: 0;
        padding: 0;
        font-family: Microsoft yahei
    }

    .code-item {
        width: 100%;
        margin: 0 auto;
        padding-bottom: 1px;
        display: none;
        height: 99.9%
    }

    .code-title {
        height: 75pt;
        background-color: #f2f2f2;
        background-position: center;
        background-repeat: no-repeat;
        background-size: 50%
    }

    .code-area, .code-footer {
        text-align: center
    }

    .code-footer {
        height: 5pc;
        background-color: #fff;
        color: #666;
        line-height: 5pc;
        font-size: 20px;
        margin: -2px 2px 2px
    }

    body, html {
        height: 100%;
        margin: 0;
        font-size: 16px
    }

    body, html {
        height: 100%;
        margin: 0;
        font-size: 16px
    }

    body {
        font-family: -apple-system-font, YouYuan, Microsoft YaHei, Helvetica Neue, Helvetica, sans-serif
    }

    .ui-qlogo {
        width: 55px;
        height: 55px;
        background-size: 100% 100%;
        margin: 5px;
        border-radius: 30px
    }

    .code-item {
        width: 100%;
        display: none
    }

    #color {
        background-color: #009688
    }

    .ui-flex-pack-center {
        -webkit-box-pack: center
    }

    .ui-flex-ver {
        -webkit-box-orient: vertical
    }

    .ui-flex-align-center {
        -webkit-box-align: center
    }

    h1, h2, h3, h4, h5 {
        margin: 0
    }

    .ui-panel {
        display: -webkit-box;
        width: 100%;
        -webkit-box-sizing: border-box
    }

    .icon-weixin2 {
        font-size: 54px;
        color: #46a638
    }

    h1 {
        font-size: 25px
    }

    #ui-head {
        background-color: #fff;
        padding: 10px 0
    }

    h2 {
        font-size: 16px;
        font-weight: 400
    }

    .ui-tips {
        background-color: #fff;
        color: #46a638;
        font-size: 20px;
        text-align: center;
        padding: 5px 0;
        margin: 25px auto;
        width: 260px;
        border-radius: 20px
    }

    .ui-qrcode {
        background-color: #fff;
        border-radius: 15px;
        width: 230px;
        height: 230px;
        margin: 0 auto;
        text-align: center
    }

    .ui-qrcode img {
        width: 210px;
        height: 210px;
        margin-top: 10px
    }

    .ui-paytext {
        border-bottom: 1px dotted #fff;
        margin: 0 auto;
        width: 215px;
        height: 25px
    }

    #ui-setps {
        color: #fff;
        text-align: center;
        font-size: 14px
    }

    #ui-setps i {
        font-size: 30px
    }

    .ui-circle {
        background-color: #fff;
        border-radius: 50%;
        color: #46a638;
        text-align: center;
        font-size: 11px;
        width: 16px;
        height: 16px;
        line-height: 16px;
        margin: 0 auto;
        margin-bottom: 10px
    }

    #ui-setps > div {
        padding: 15px 10px 0 10px
    }

    .ui-box {
        -webkit-box-flex: 1
    }

    .ui-padtop10 {
        padding-top: 8px;
        width: 85px;
    }

    @font-face {
        font-family: iconfont;
        src: url(iconfont.eot?t=1535512025124);
        src: url(iconfont.eot?t=1535512025124#iefix) format('embedded-opentype'), url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAkgAAsAAAAADTwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8AAAARAAAAFY8d0oxY21hcAAAAYAAAACaAAACGDficlNnbHlmAAACHAAABKsAAAX48ttoaWhlYWQAAAbIAAAALwAAADYSd6GwaGhlYQAABvgAAAAcAAAAJAfeA4tobXR4AAAHFAAAAA8AAAAoKAAAAGxvY2EAAAckAAAAFgAAABYHWgZabWF4cAAABzwAAAAdAAAAIAErAJNuYW1lAAAHXAAAAUUAAAJtPlT+fXBvc3QAAAikAAAAeQAAAKf9MwgNeJxjYGRgYOBikGPQYWB0cfMJYeBgYGGAAJAMY05meiJQDMoDyrGAaQ4gZoOIAgCKIwNPAHicY2BkYWCcwMDKwMHUyXSGgYGhH0IzvmYwYuRgYGBiYGVmwAoC0lxTGByeMb6wY27438AQw9zI0AAUZgTJAQDiBwwleJzlkrERwjAMRZ+dYBOOguMYIwOkyigpU1CmZg4q5lMyQrogWTSQEZDv+awvy/ZJBg5ApbRKDeFFwOypaih6xanoNXf1r1x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nWlb3VPs10PnIhVZk6oJqzpJjMqt2erQBRvn8lGvF4kehCblWGP+tsYCjnEFhSUOjDFCGGSIyujoO1Vm9K+xQ8Jee1Y9zed0WxTU/3OFAQL0z1xTurLSeTpPgT1fG1J1dCtuy56UNJFezUkSskJe1rZUQuoBNmVXjhF6XNGJPyhnSP8ACVpuyAAAAHicbY1LCsJAEAX7xU+SETEXmYVnyQGkaYdJ66QHHIOQ00cU4sZaPaoWjyr64ug/DhU22GKHPWo0aOFwoE4lm5chyN2XnPTavrfFmC0e+0kklOL7kVNyqz+fhPM85VXUMrBFtu6pbDflXwiPV9CRG5XL54JoAT0kKScAAAA=') format('woff'), url(iconfont.ttf?t=1535512025124) format('truetype'), url(iconfont.svg?t=1535512025124#iconfont) format('svg')
    }

    .iconfont {
        font-family: iconfont !important;
        font-size: 16px;
        font-style: normal;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale
    }

    .icon-icon-check-solid:before {
        content: "\e672"
    }

    .icon-chenggong:before {
        content: "\e638"
    }

    .icon-Success-Small:before {
        content: "\e602"
    }

    .icon-chenggong1:before {
        content: "\e666"
    }

    .icon-caozuochenggong:before {
        content: "\e7f8"
    }

    .icon-changan:before {
        content: "\e83e"
    }

    .icon-tianjiachenggong:before {
        content: "\e65e"
    }

    .icon-erweima:before {
        content: "\e607"
    }

    .icon-ic_check:before {
        content: "\e601"
    }
  </style>
</head>
<body>
  <link href="https://at.alicdn.com/t/font_1638157_48mrkn0ipgd.css" rel="stylesheet"/>
  <!-- all -->
  <div class="code-item" id="code-all" style="background: linear-gradient(90deg,#20a0ff,#20b8ff);display:none">
    <div class="ui-panel ui-flex-pack-center ui-flex-align-center" id="ui-head">
      <img class="ui-qlogo" id="qlogo_all" src="">
      <div>
        <h1><a id="recname_all"
               style="background: linear-gradient(90deg,#20a0ff,#20b8ff);-webkit-background-clip: text;-webkit-text-fill-color: transparent;">扫码付款</a>
        </h1>
        <h2 id="qnick"><a
                style="background: linear-gradient(90deg,#20a0ff,#20b8ff);-webkit-background-clip: text;-webkit-text-fill-color: transparent;"><b>商户收款码</b></a>
        </h2>
      </div>
    </div>
    <div class="ui-box ui-panel ui-flex-align-center">
      <div class="ui-panel ui-flex-ver ui-flex-pack-center" id="ui-content">
        <div class="ui-tips"><a style="background: linear-gradient(90deg,#20a0ff,#20b8ff);-webkit-background-clip: text;-webkit-text-fill-color: transparent;"><b>支持我,可以长按二维码捐赠</b></a>
        </div>
        <br>
        <div class="ui-qrcode">
          <div class="code-area">
              <!--这里默认是头像-->
            <img id="page-url" style="cursor:pointer" src="">
          </div>
        </div>
        <div class="ui-paytext"></div>
        <div class="ui-panel ui-flex-pack-center btn-box" id="ui-setps">
          <div class="btn-pay btn-wechatpay">
            <div class="ui-circle"><a><b class="head">·</b></a>
            </div>
            <i class="icon iconfont iconwechat-pay-line"></i>
            <div class="ui-padtop10"><b>微信打赏</b></div>
          </div>
          <div class="btn-pay btn-alipay">
            <div class="ui-circle"><a><b class="head">·</b></a>
            </div>
            <i class="icon iconfont iconalipay"></i>
            <div class="ui-padtop10"><b>支付宝打赏</b></div>
          </div>
          <div class="btn-pay btn-qqpay">
            <div class="ui-circle"><a><b class="head">·</b></a>
            </div>
            <i class="icon iconfont iconqq"></i>
            <div class="ui-padtop10"><b>QQ打赏</b></div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <!-- qq -->
  <div class="code-item" id="code-qq" style="background: linear-gradient(90deg,#E51F1F,#B81A1A);display:none">
    <div class="ui-panel ui-flex-pack-center ui-flex-align-center" id="ui-head">
        <img class="ui-qlogo" id="qlogo_qq" src="">
        <div>
            <h1>
                <a id="recname_qq"
                   style="background: linear-gradient(90deg,#E51F1F,#B81A1A);-webkit-background-clip:text;-webkit-text-fill-color: transparent;">扫码付款</a>
            </h1>
            <h2 id="qnick">
                <a style="background: linear-gradient(90deg,#E51F1F,#B81A1A);-webkit-background-clip: text;-webkit-text-fill-color: transparent;"><b>商户收款码</b></a>
            </h2>
        </div>
    </div>
    <div class="ui-box ui-panel ui-flex-align-center">
        <div class="ui-panel ui-flex-ver ui-flex-pack-center" id="ui-content">
            <div class="ui-tips"><a
                    style="background: linear-gradient(90deg,#E51F1F,#B81A1A);-webkit-background-clip: text;-webkit-text-fill-color: transparent;"><b>支持我,可以长按二维码捐赠</b></a>
            </div>
            <br>
            <div class="ui-qrcode">
              <div class="code-area">
                  <!--这里存放二维码 = QQ-->
                <img id="qq-url" style="cursor:pointer"
                     src="">
              </div>
            </div>
            <div class="ui-paytext"></div>
            <div class="ui-panel ui-flex-pack-center" id="ui-setps">
              <div>
                <div class="ui-circle"><a
                        style="background: linear-gradient(90deg,#E51F1F,#B81A1A);-webkit-background-clip: text;-webkit-text-fill-color: transparent;"><b>1</b></a>
                </div>
                <i class="icon iconfont icon-changan"></i>
                <div class="ui-padtop10"><b>长按二维码</b></div>
              </div>
              <div>
                <div class="ui-circle"><a
                        style="background: linear-gradient(90deg,#E51F1F,#B81A1A);-webkit-background-clip: text;-webkit-text-fill-color: transparent;"><b>2</b></a>
                </div>
                <i class="icon iconfont icon-erweima"></i>
                <div class="ui-padtop10"><b>扫描二维码</b></div>
              </div>
              <div>
                <div class="ui-circle"><a
                        style="background: linear-gradient(90deg,#E51F1F,#B81A1A);-webkit-background-clip: text;-webkit-text-fill-color: transparent;"><b>3</b></a>
                </div>
                <i class="icon iconfont icon-icon-check-solid"></i>
                <div class="ui-padtop10"><b>输入金额支付</b></div>
              </div>
            </div>
        </div>
    </div>
  </div>
  <!-- wechat -->
  <div class="code-item" id="code-wechat" style="background: linear-gradient(90deg,#44AF35,#378F2B);display:none">
      <div class="ui-panel ui-flex-pack-center ui-flex-align-center" id="ui-head">
          <img class="ui-qlogo" id="qlogo_wechat" src="">
          <div>
              <h1>
                  <a id="recname_wechat"
                     style="background: linear-gradient(90deg,#44AF35,#378F2B);-webkit-background-clip:text;-webkit-text-fill-color: transparent;">扫码付款</a>
              </h1>
              <h2 id="qnick">
                  <a style="background: linear-gradient(90deg,#44AF35,#378F2B);-webkit-background-clip: text;-webkit-text-fill-color: transparent;"><b>商户收款码</b></a>
              </h2>
          </div>
      </div>
      <div class="ui-box ui-panel ui-flex-align-center">
          <div class="ui-panel ui-flex-ver ui-flex-pack-center" id="ui-content">
              <div class="ui-tips"><a style="background: linear-gradient(90deg,#44AF35,#378F2B);-webkit-background-clip:
                  text;-webkit-text-fill-color: transparent;"><b>请长按二维码支付</b></a>
              </div>
              <br>
              <div class="ui-qrcode">
                <div class="code-area">
                  <img id="wechat-url" style="cursor:pointer"
                       src="">
                </div>
              </div>
              <div class="ui-paytext"></div>
              <div class="ui-panel ui-flex-pack-center" id="ui-setps">
                <div>
                  <div class="ui-circle">
                      <a style="background: linear-gradient(90deg,#44AF35,#378F2B);-webkit-background-clip: text;-webkit-text-fill-color: transparent;"><b>1</b></a>
                  </div>
                  <i class="icon iconfont icon-changan"></i>
                  <div class="ui-padtop10"><b>长按二维码</b></div>
                </div>
                <div>
                  <div class="ui-circle">
                      <a style="background: linear-gradient(90deg,#44AF35,#378F2B);-webkit-background-clip: text;-webkit-text-fill-color: transparent;"><b>2</b></a>
                  </div>
                  <i class="icon iconfont icon-erweima"></i>
                  <div class="ui-padtop10"><b>扫描二维码</b></div>
                </div>
                <div>
                  <div class="ui-circle">
                      <a style="background: linear-gradient(90deg,#44AF35,#378F2B);-webkit-background-clip: text;-webkit-text-fill-color: transparent;"><b>3</b></a>
                  </div>
                  <i class="icon iconfont icon-icon-check-solid"></i>
                  <div class="ui-padtop10"><b>输入金额支付</b></div>
                </div>
              </div>
          </div>
      </div>
  </div>
  <script>
      (function () {
          // 支付宝收款链接
          var aliUrl = "https://qr.alipay.com/FKX07861VFM0M2UZY33YB7";
          var aliQRUrl = "";

          // 微信收款链接
          var wechatUrl = "wxp://f2f0-FvSosOaPJO6juzp-XKICFINlTTVmjWN";
          var wechatQRUrl = "";

          // QQ收款链接
          var qqUrl = "https://i.qianbao.qq.com/wallet/sqrcode.htm?m=tenpay&f=wallet&a=1&ac=E97AF7E26D6135F1919070DCD06FE3E1BD2828AE0C889B95974CDC2985B20F61&u=1353464539";
          var qqQRUrl = "";

          var arch = "";

          // 获取收款名称，为空则显示默认“扫码付款”
          var recname = "这是AC狗" || "扫码付款";

          document.querySelector(".btn-alipay").dataset.imgsrc = aliQRUrl;
          document.querySelector(".btn-wechatpay").dataset.imgsrc = wechatQRUrl;
          document.querySelector(".btn-qqpay").dataset.imgsrc = qqQRUrl;

          document.querySelectorAll(".ui-qlogo, #page-url, #qq-url, #wechat-url").forEach(function (per) {
              per.src = arch;
          });

          if (navigator.userAgent.match(/Alipay/i)) { // 阿里的
              if (!aliUrl) {
                  alert("此商户未启用支付宝收款");
              }
              window.location.href = aliUrl;
          } else if (navigator.userAgent.match(/MicroMessenger\//i)) { // 微信的
              if (!wechatUrl) {
                  alert("此商户未启用微信收款");
              } else {
                  var node = document.getElementById("wechat-url");
                  node.dataset.url = wechatUrl;
                  node.src = wechatQRUrl;
              }
              document.getElementById("recname_wechat").innerHTML = recname;
              document.getElementById("code-wechat").style.display = "block";
          } else if (navigator.userAgent.match(/QQ\//i)) { // QQ的
              if (!qqUrl) {
                  alert("此商户未启用QQ收款");
              } else {
                  var node = document.getElementById("qq-url");
                  node.dataset.url = qqUrl;
                  node.src = qqQRUrl;
              }
              document.getElementById("code-qq").style.display = "block";
              document.getElementById("recname_qq").innerHTML = recname;
          } else {
              // 默认的 - windows下面 ： 显示三种选择模式
              showAtPC();
              // var node = document.getElementById("page-url");
              // node.dataset.url = "https://pay.acdiao.com";
              // node.src = ""; // TODO 这里要改为我的参数数据
              document.getElementById("code-all").style.display = "block";
              document.getElementById("recname_all").innerHTML = recname;
              document.querySelector(".btn-alipay").click();
          }

          function tryiframe() {
              // 尝试用iframe的弹窗使用alipay
              setTimeout(function(){
                  var iframeNode = document.createElement("iframe");
                  iframeNode.src = aliUrl;
                  iframeNode.style = "display:none";
                  document.body.appendChild(iframeNode);
              }, 800);
          }
          function showAtPC(){
             document.querySelector(".btn-box").addEventListener("click", function(ev){
                 // 移除其他，点亮当前
                 let target = ev.target || ev.srcElement;
                 while(target.className.indexOf("btn-pay") < 0){
                     target = target.parentNode;
                 }
                 document.querySelectorAll(".btn-pay").forEach(function (per) {
                     per.classList.remove("selected");
                 });
                 target.classList.add("selected");
                 document.getElementById("page-url").src = target.dataset.imgsrc;
             }, true);
          }
          tryiframe();

          document.querySelectorAll("#wechat-url,#qq-url,#page-url").forEach(function (per) {
              per.addEventListener("contextmenu", tryiframe);
              per.addEventListener("click", tryiframe);
          });
      })()
  </script>
    <style>
        .iconfont:before{
            font-size: 35px;
            color: #FEFEFE;
        }
        .ui-circle a{
            background: linear-gradient(90deg,#20a0ff,#20b8ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .selected .iconfont:before {
            font-size: 38px;

            transition-property: color, text-shadow !important;
            transition-duration: 0.423s !important;
            transition-timing-function: ease !important;
            color: #FEFEFE !important;
            text-shadow: 0 1px white !important;
        }
        .selected .ui-padtop10 b{
            font-weight: 900;
        }
        /*位置不对齐*/
        .selected .ui-padtop10 b:after{
            font-family: "iconfont" !important;
            content: "\e60f";
            display: block;
        }
        .selected .ui-circle{
            border: 1px solid #023e6d;
            margin: -1 auto;
            margin-bottom: 10px;
        }
    </style>
</body>
</html>
